﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Administer Product
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div id="cen" class="Administer">
		<table data-controller="Product">
			<thead>
				<%: Html.Partial("_Admin",viewData:new ViewDataDictionary(){{"type","header"}} ) %>
				<% Response.Write(Html.Action("_Add")); %>
			</thead>
			<tbody>
				<%
					foreach (var x in z.Controllers.App.db.Products.OrderByDescending(x=>x.ID)) {
						Response.Write(Html.Partial("_Admin", x));
					}
				%>
			</tbody>
		</table>
	</div>
</asp:Content>